-- GENERATED SPELL FOR [Stormrider] --


function spell0_29624(pUnit, Event) --@Forked Lightning,n/a--
pUnit:FullCastSpellOnTarget(12549,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29624', 2000, 1)
end

function spell1_29624(pUnit, Event) --@Stormstrike,n/a--
pUnit:FullCastSpellOnTarget(51876,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29624', 12265, 1)
end

function Sorts_29624(pUnit, Event)
local choix_sorts_29624 = math.random(0, 1)
if choix_sorts_29624 == 0 then
pUnit:RegisterEvent('spell0_29624', 1, 1)
end
if choix_sorts_29624 == 1 then
pUnit:RegisterEvent('spell1_29624', 1, 1)
end
end

function mob29624_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29624', math.random(1500, 3000), 1)
end

function mob29624_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29624_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29624_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29624, 1, 'mob29624_Action')
RegisterUnitEvent(29624, 2, 'mob29624_Leave')
RegisterUnitEvent(29624, 3, 'mob29624_Kill')
RegisterUnitEvent(29624, 4, 'mob29624_Die')
